home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
dev
/
amos
/
ProcLib20.lha
/
System
/
MAKE_RAM.Amos
/
MAKE_RAM.amosSourceCode
Wrap
AMOS Source Code
|
1993-10-29
|
991b
|
36 lines
'*********************************************************
'
'MAKE_RAM
'
'
'Very simple this - make ram attempts to access the ram disk.
'
'If it can, it returns True. If it can't it returns false.
'
'Uses: To detect if the ram disk exists
'
' Creates a ram disk, if possible
'
' Ensures RAM: & RAM DISK appear in all future
' file selectors and dev first$("") / dev next$
' calls.
'
' On KickStart 1.3, the RAM DISK requires Ram-Handler from
' the L: directory. Putting MAKE RAM at the start of your
' program forces this to be loaded, before the user can remove
' the boot disk preventing a "Please insert volume..." requester
' later on.
'
Procedure MAKE_RAM
'Procedure By Paul Hickman (ph@doc.ic.ac.uk)
On Error Goto MAKE_RAM_ERROR
Resume Label _MAKE_RAM_EXIT
D$=Dir$ : Dir$="RAM:" : Dir$=D$
_RAM_MADE=True
Goto _MAKE_RAM_EXIT
'
MAKE_RAM_ERROR:
Resume Label
'
_MAKE_RAM_EXIT:
End Proc[_RAM_MADE]